Release 10.1A: OpenEdge Development:
.NET Open Clients
Getting OUTPUT parameter values
After running a procedure or user-defined function, you can access the
OUTPUTparameters using the followingParamArraymethod:
paramNumSpecifies the 0-based position of the parameter.
The output value is always returned as a
System.Object. If theObjectreturned cannot benull, you need to cast theObjectto the output parameter data type and assign it to the output variable you have created to hold the cast value. If theObjectreturned can benull, you need to assign it to theValueproperty of a holder object, then test fornullbefore obtaining the appropriate data type value as output.Example 8–7 shows getting an output integer parameter (or the output side of an input-output parameter) that might be set to the Unknown value (
?) in the 4GL:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |